package com.osgix.authorize.service;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.osgix.authorize.model.UserInfo;
import com.osgix.authorize.dao.UserInfoDao;

import com.osgix.authorize.model.UserInfo;
import com.osgix.common.service.BaseManager;

import com.osgix.common.orm.ibatis.BaseIbatisDao;
import org.springframework.stereotype.Repository;

public interface UserInfoManager extends BaseManager<UserInfo,Long> {

	/**增加setXXXX()方法,spring就可以通过autowire自动设置对象属性,请注意大小写*/
	public void setUserInfoDao(UserInfoDao dao);
	
	public void saveUserInfo(UserInfo userInfo) throws RuntimeException;
	
	public void updateUserInfo(UserInfo userInfo);
	
	public UserInfo getByLoginAccount(java.lang.String loginAccount);
	
	public UserInfo getByLoginEmail(java.lang.String loginEmail);
	
	
	public int deleteByLoginAccount(java.lang.String loginAccount);
	
	public int deleteByLoginEmail(java.lang.String loginEmail);
	
}
